package ed.hbut.supermarket1.mapper;

import ed.hbut.supermarket1.dto.FinanceDto;
import ed.hbut.supermarket1.entity.Cost;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

@Mapper
public interface FinanceMapper {
    List<FinanceDto> getSalePrice(int year, Integer month);

    BigDecimal getCost(int year, Integer month);

    List<Cost> getCostList();

    List<FinanceDto> getSalePriceBymonth(@Param("year") Integer year);

    List<FinanceDto> getSalePriceByDay(@Param("year") Integer year, @Param("month") Integer month);

    List<FinanceDto> getCostPriceBymonth(Integer year);

}
